//
//  XDHeader_Url.h
//  HengHuaSupervision
//
//  Created by XD-XY on 3/20/14.
//  Copyright (c) 2014 XD-XY. All rights reserved.
//  请求url宏




#define DEMO_FILESAVEPATH [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject] stringByAppendingPathComponent:@"Demo/Files"]

#define IMG_FILESAVEPATH [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES)objectAtIndex:0];

/*
 请求返回编号及说明
 */
typedef enum{
    
    normalProcess = 1,                   //正常
    deviceInexistence = 1004,            //初始化失败：设备未注册
    interfaceInexistence = 2001,         //接口不存在
    interfaceForbidden = 2002,           //接口被禁用
    interfaceDataTypeError = 2003,       //接口使用了不允许的返回数据类型
    interfaceUnusual= 2004,              //接口返回了未经允许的异常
    inputParamError = 3001,              //接口输入参数错误
    otherError = 3004,                   //其他未知接口内部异常
    giipError = 4001,                    //中间件未知异常   中间件错误，500，401，404，失败
    
} GIIPRequestResult;

#define mUser_Info       @"user_info"
#define CONTENT          @"content"

#define SERVERPATH @"http://t1.hhwy.org/giipms/service"   //主服务器

#define mTrace_LoginUrl                      @"trace_login"       //用户绑定udid
#define mTrace_GettagsUrl                    @"trace_gettags"     //获取标签库
#define mTrace_GetpropertydatasUrl           @"trace_getpropertydatas"   //获取资产信息
#define mTrace_GetpropertywithlabeldatasUrl  @"trace_getpropertywithlabeldatas"  //获取资产标签关联信息
#define mTrace_Getscandatas        @"trace_getscandatas"   //获取扫描信息
#define mTrace_Getsupervision      @"trace_getsupervision" //获取监造信息
#define mTrace_Upsupervisiondatas  @"trace_upsupervisiondatas" //监造上传
#define mTrace_Uparrivedatas       @"trace_uparrivedatas"   //到货上传
#define mTrace_Getarrivedatas      @"trace_getarrivedatas"  //获取到货信息
#define mTrace_Uptransportdatas    @"trace_uptransportdatas" //运输上传
#define mTrace_Gettransportdatas   @"trace_gettransportdatas" //获取运输信息
